import { mock } from "mockjs"

function getProblemDescription() {
    const problem_list = []
    for(var i = 0; i < 135; i++){
        var text = {
            user_rank: i + 1,
            user_id: mock('@cname()'),
            user_nick: mock('@cname()'),
            true_submit: mock('@integer(100, 10000)'),
            all_submit: mock('@integer(100, 10000)'),
        };
        // console.log(text);
        problem_list.push(text);
    }
    return problem_list
}

export default [
    {
        url: '/api/user/login/',
        method: 'get',
        data: '1234'
    },
    {
        url: '/api/user/login/',
        method: 'post',
        data: '登陆成功'
    },
    // {
    //     url: '/api/user/get_user_info',
    //     method: 'get',
    //     data: {
    //         user_id: "201910101600040",
    //         registration_time: "2020-01-01 08:00:00",
    //         user_id: "201910101600040",
    //         registration_time: "2021-08-20T05:30:30.792553Z",
    //         user_icon: null,
    //         student_id: "201910101600040",
    //         user_name: "任成辉",
    //         user_nick: "LiSoul",
    //         user_introduce: "a little girl",
    //         user_power: 0,
    //         user_score: 0,
    //         user_sex: 0,
    //         user_telephone: "",
    //         user_email: "",
    //         user_birthday: "2000-01-01T00:00:00Z",
    //         user_school: null,
    //         user_address: null
    //     }
    // },
    {
        url: '/api/getrank/',
        method: 'get',
        data: getProblemDescription()
    }
]